<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--这个是子论坛首页的模板，在这个模板里，你可以浏览帖子-->
<html>

	<head>
		<title>${themeTitle}</title>
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="${themeTitle}">
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<script type="text/javascript" src="../js/jquery-1.6.1.js">
</script>
		<script type="text/javascript" src="../js/forumuploadfile.js">
</script>
		<script type="text/javascript" src="../js/formattext.js">
</script>
		<link href="../css/forum.css" rel="stylesheet" type="text/css"
			media="screen" />
	</head>

	<body>
		<div id="wrapper">
			<!-- start header -->
			<div id="header-wrapper">
				<div id="header">
					<div id="logo">
						<h1>
							<a href="#"> <span> ${themeTitle} Forum </span> </a>
						</h1>
						<p>
							This is ${themeTitle} Forum
						</p>
					</div>
				</div>
			</div>
			<div id="menu-wrapper">
				<div id="menu">
					<ul id="main">
						<li class="current_page_item">
							<a href="#"> Homepage </a>
						</li>
						<li>
							<a href="#"> Forum </a>
						</li>
						<li>
							<a href="#"> Contact Us </a>
						</li>
					</ul>
				</div>
			</div>
			<!-- end header -->
			<!-- start page -->
			<div id="page">
				<!-- start content -->
				<div id="content">
					<div class="articleArea">
						<table>
							<tr>
								<th class="articleTitle">
									Title
								</th>
								<th class="authorName">
									Author
								</th>
								<th class="commentNumber">
									Comments
								</th>
								<th class="submitTime">
									SubmitTime
								</th>
							</tr>
							<#list forumInfo as article>
							<tr>
								<td class="articleTitle">
									<a
										href="readArticleAction.action?article.themeTitle=${themeTitle}&article.articleId=${article.articleId}">
										${article.articleTitle} </a>
								</td>
								<td class="authorName">
									${article.authorName}
								</td>
								<td class="commentNumber">
									${article.commentNumber}
								</td>
								<td class="submitTime">
									${article.inTime}
								</td>
							</tr>
							</#list>

						</table>
					</div>
					<div class="controlArea">
						<a
							href="getForumIndexAction.action?forumPage=1&themeTitle=${themeTitle}">
							First Page </a> &nbsp;
						<a
							href="getForumIndexAction.action?forumPage=${forumPage-1}&themeTitle=${themeTitle}">
							Previous Page </a> &nbsp;
						<a
							href="getForumIndexAction.action?forumPage=${forumPage+1}&themeTitle=${themeTitle}">
							Next Page </a> &nbsp;
						<a
							href="getForumIndexAction.action?forumPage=${lastPage}&themeTitle=${themeTitle}">
							Last Page </a>
					</div>
					<div id="newArticleArea">

						<form method="post" action="newTopicAction.action"
							onsubmit="return formatText(articleContentTextArea,articleTitleInput)">
							<input type="text" name=article.themeTitle
								style="visibility: hidden" value=${themeTitle}>
							<br>
							Title：
							<input type="text" name=article.articleTitle
								id="articleTitleInput">
							<br>
							Content：
							<textarea type="text" name="article.articleContent " cols="50 "
								rows="8 " id="articleContentTextArea">
                            </textarea>
							<br>
							<input type="submit" value="submit">
						</form>
					</div>
					<div id="attachment_area">
					</div>
					<div id="addAttchment_area">
						<form action="uploadFileAction.action" method="post"
							enctype="multipart/form-data" target="uploadFrame"
							id="uploadFileForm">
							Add Attachment:
							<input type="file" name="upload" id="filePath">
							<br>
							<input value="upload" type="submit" onclick="uploadFile()"
								id="uploadButton">
						</form>
						<iframe name="uploadFrame" style="visibility: hidden">
						</iframe>
					</div>
				</div>
			</div>
	</body>

</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--这个是子论坛首页的模板，在这个模板里，你可以浏览帖子-->
<html>

	<head>
		<title>${themeTitle}</title>
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="${themeTitle}">
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<script type="text/javascript" src="../js/jquery-1.6.1.js">
</script>
		<script type="text/javascript" src="../js/forumuploadfile.js">
</script>
		<script type="text/javascript" src="../js/formattext.js">
</script>
		<link href="../css/forum.css" rel="stylesheet" type="text/css"
			media="screen" />
	</head>

	<body>
		<div id="wrapper">
			<!-- start header -->
			<div id="header-wrapper">
				<div id="header">
					<div id="logo">
						<h1>
							<a href="#"> <span> ${themeTitle} Forum </span> </a>
						</h1>
						<p>
							This is ${themeTitle} Forum
						</p>
					</div>
				</div>
			</div>
			<div id="menu-wrapper">
				<div id="menu">
					<ul id="main">
						<li class="current_page_item">
							<a href="#"> Homepage </a>
						</li>
						<li>
							<a href="#"> Forum </a>
						</li>
						<li>
							<a href="#"> Contact Us </a>
						</li>
					</ul>
				</div>
			</div>
			<!-- end header -->
			<!-- start page -->
			<div id="page">
				<!-- start content -->
				<div id="content">
					<div class="articleArea">
						<table>
							<tr>
								<th class="articleTitle">
									Title
								</th>
								<th class="authorName">
									Author
								</th>
								<th class="commentNumber">
									Comments
								</th>
								<th class="submitTime">
									SubmitTime
								</th>
							</tr>
							<#list forumInfo as article>
							<tr>
								<td class="articleTitle">
									<a
										href="readArticleAction.action?article.themeTitle=${themeTitle}&article.articleId=${article.articleId}">
										${article.articleTitle} </a>
								</td>
								<td class="authorName">
									${article.authorName}
								</td>
								<td class="commentNumber">
									${article.commentNumber}
								</td>
								<td class="submitTime">
									${article.inTime}
								</td>
							</tr>
							</#list>

						</table>
					</div>
					<div class="controlArea">
						<a
							href="getForumIndexAction.action?forumPage=1&themeTitle=${themeTitle}">
							First Page </a> &nbsp;
						<a
							href="getForumIndexAction.action?forumPage=${forumPage-1}&themeTitle=${themeTitle}">
							Previous Page </a> &nbsp;
						<a
							href="getForumIndexAction.action?forumPage=${forumPage+1}&themeTitle=${themeTitle}">
							Next Page </a> &nbsp;
						<a
							href="getForumIndexAction.action?forumPage=${lastPage}&themeTitle=${themeTitle}">
							Last Page </a>
					</div>
					<div id="newArticleArea">

						<form method="post" action="newTopicAction.action"
							onsubmit="return formatText(articleContentTextArea,articleTitleInput)">
							<input type="text" name=article.themeTitle
								style="visibility: hidden" value=${themeTitle}>
							<br>
							Title：
							<input type="text" name=article.articleTitle
								id="articleTitleInput">
							<br>
							Content：
							<textarea type="text" name="article.articleContent " cols="50 "
								rows="8 " id="articleContentTextArea">
                            </textarea>
							<br>
							<input type="submit" value="submit">
						</form>
					</div>
					<div id="attachment_area">
					</div>
					<div id="addAttchment_area">
						<form action="uploadFileAction.action" method="post"
							enctype="multipart/form-data" target="uploadFrame"
							id="uploadFileForm">
							Add Attachment:
							<input type="file" name="upload" id="filePath">
							<br>
							<input value="upload" type="submit" onclick="uploadFile()"
								id="uploadButton">
						</form>
						<iframe name="uploadFrame" style="visibility: hidden">
						</iframe>
					</div>
				</div>
			</div>
	</body>

</html>